package com.springboot.sakila.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.springboot.sakila.entity.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/*
 *DATE:2025/7/14
 */
@Mapper
public interface AddressMapper extends BaseMapper<Address> {
    Address selectById(Integer id);
    void insertOne(Address address);
    void updateOne(Address address);

    void deleteById(Integer id);

    Page<Address> selectPage(@Param("address") String address,
                             @Param("phone") String phone,
                             Page<Address> page);

    Page<Address> selectAAndCAndtForPages(@Param("address") String address,
                                          @Param("phone") String phone,
                                          Page<Address> page);
}
